<div ng-controller="WmsCtrl" ng-init="customelistAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/wms/list">{{'仓库'| translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
        </li>
        <span class="sui-form sui-form pull-right" >
            商品Sku货号:<input type="text" ng-model="SKU">
            商品名称:<input type="text" ng-model="itemKeyword">
            <button style="margin-left: 4px;"  class="sui-btn btn-primary" ng-click="search()">
                <span>{{'搜索' | translate}}</span>
            </button>
        </span>
    </ul>
    <div style="width: 500px">
        <form name="myForm" enctype="multipart/form-data">
        <fieldset>
            <legend>{{"导入文件"|translate}}</legend>
            <input type="file" ngf-select ng-model="picFile" name="file" a ngf-model-invalid="errorFile" ngf-keep="distinct">
            <button class="sui-btn btn-small btn-primary" ng-click="fileUpload(picFile)" ng-show="!records.length" ng-disabled="odj">{{"导入"|translate}}</button>
        </fieldset>
    </div>
    <div>
        导入模板文件：<a href="{{mb}}" target="_blank">下载</a>
    </div>
    <div>
        注:导入文件前往 <a href="http://221.224.22.206:8080/CQXT/Index.aspx" target="_blank">重庆海关平台</a>-> 商品备案-> 导出备案信息 即可;
        导入时文件格式，必须和样例文件格式相同；
    </div>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'货号'|translate}}</th>
                <th>{{'商品条形码'|translate}}</th>
                <th>{{'商品名称'|translate}}</th>
                <th>{{'商品规格'|translate}}</th>
                <th>{{'商品HS编码'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in customslist">
                <td>{{list.SKU}}</td>
                <td>{{list.BAR_CODE}}</td>
                <td>{{list.GOODS_NAME}}</td>
                <td>{{list.GOODS_SPEC}}</td>
                <td>{{list.HS_CODE}}</td>
                <td style="width:80px;">
                   <a href="#/wms/customsitemsupdate?sku={{list.SKU}}&shop_code={{shop_code}}"  class="sui-btn btn-primary">编辑</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="{{pageNo}}" page-size="pageSize" total="total_count" get-data="getcustomelist(pageNo)"></pager>
    <!-- 分页end -->
    
</div>